package com.woniuxy.pojo;

import java.io.Serializable;
import java.util.List;

public class SysRole implements Serializable {
    private Integer id;

    private String rolename;
    
    private List<SysPermission> Permissions;

    private static final long serialVersionUID = 1L;

    
    public List<SysPermission> getPermissions() {
		return Permissions;
	}

	public void setPermissions(List<SysPermission> permissions) {
		Permissions = permissions;
	}

	public SysRole(Integer id, String rolename) {
		super();
		this.id = id;
		this.rolename = rolename;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename == null ? null : rolename.trim();
    }

	@Override
	public String toString() {
		return "SysRole [id=" + id + ", rolename=" + rolename + ", Permissions=" + Permissions + "]";
	}

	
    
}